import axios from 'axios';
// 获取标签列表
let list = (params) => axios.get('/tag/list', { params });
// 修改标签
let edit = (tag_id,data) => axios.put(`/tag/${tag_id}`, data);
// 删除标签
let remove = (tag_id,params) => axios.delete(`/tag/${tag_id}`, {params});
// 添加新标签
let create = (data) => axios.post('/tag/', data);

export default {
	list,
	edit,
	remove,
	create
}
